package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetBankOutletsMapper;
import com.ruoyi.system.domain.HatchetBankOutlets;
import com.ruoyi.system.service.IHatchetBankOutletsService;
import com.ruoyi.common.support.Convert;

/**
 * 银行卡 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-25
 */
@Service
public class HatchetBankOutletsServiceImpl implements IHatchetBankOutletsService 
{
	@Autowired
	private HatchetBankOutletsMapper hatchetBankOutletsMapper;

	/**
     * 查询银行卡信息
     * 
     * @param id 银行卡ID
     * @return 银行卡信息
     */
    @Override
	public HatchetBankOutlets selectHatchetBankOutletsById(String id)
	{
	    return hatchetBankOutletsMapper.selectHatchetBankOutletsById(id);
	}
	
	/**
     * 查询银行卡列表
     * 
     * @param hatchetBankOutlets 银行卡信息
     * @return 银行卡集合
     */
	@Override
	public List<HatchetBankOutlets> selectHatchetBankOutletsList(HatchetBankOutlets hatchetBankOutlets)
	{
	    return hatchetBankOutletsMapper.selectHatchetBankOutletsList(hatchetBankOutlets);
	}
	
    /**
     * 新增银行卡
     * 
     * @param hatchetBankOutlets 银行卡信息
     * @return 结果
     */
	@Override
	public int insertHatchetBankOutlets(HatchetBankOutlets hatchetBankOutlets)
	{
	    return hatchetBankOutletsMapper.insertHatchetBankOutlets(hatchetBankOutlets);
	}
	
	/**
     * 修改银行卡
     * 
     * @param hatchetBankOutlets 银行卡信息
     * @return 结果
     */
	@Override
	public int updateHatchetBankOutlets(HatchetBankOutlets hatchetBankOutlets)
	{
	    return hatchetBankOutletsMapper.updateHatchetBankOutlets(hatchetBankOutlets);
	}

	/**
     * 删除银行卡对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetBankOutletsByIds(String ids)
	{
		return hatchetBankOutletsMapper.deleteHatchetBankOutletsByIds(Convert.toStrArray(ids));
	}
	
}
